<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>basicAuth</title>
    <script src="js/jquery-2.2.3.min.js"></script>
    <script>
        function logout() {
            $.post("/common/logout", function (response) {
                location.href = "index.html";
            })
        }
    </script>
</head>
<body>
    <div id="pageInfo">欢迎访问</div>
    <button onclick="logout()">退出</button>
</body>
</html>